Search results
32 packages found
Returns `true` if the path appears to be relative.
Returns true if a file path is absolute. Does not rely on the path module and can be used as a polyfill for node.js native `path.isAbolute`.
Detects if a file exists and returns the resolved filepath.
Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.
Find the first directory with a package.json, recursing up, starting with the given directory. Similar to look-up but does not support globs and only searches for package.json. Async and sync.
Resolve a directory that is either local, global or in the user's home directory.
Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.
Get installation path where the given package is installed. Works for globally and locally installed packages
Localized and configureable async and sync `requre.resolve()` implementation.
Get the relative filepath from path A to path B. Calculates from file-to-directory, file-to-file, directory-to-file, and directory-to-directory.
Resolves a given package if it is installed locally, then tries to resolve it from global registry, using battle-tested [global-modules][] package. Better approach than internal `require.resolve`, so you can trust. You just get absolute filepath to some p
resolve/normalize a filepath using the cwd as the basepath if relative
Easily get the CWD (current working directory) of a project based on package.json, optionally starting from a given path. (node.js/javascript util)
Hierarchical filepath resolver
given a filepath return a unique id with serialised info from any package.json file is discovered on the path
Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.
resolve one filepath (or id) relative to another via the rules of CommonJS/node's module.require
Resolve the path of a module from the directory where npm is installed
Utility for returning a list of arrays that contain matching keywords. Useful for filtering package.json files.